package com.smt.modules.bus.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;
import com.smt.common.base.BaseEntity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 积分表
 * 
 * @author murong
 * @email 981620741@qq.com
 * @date 2018-10-17 10:06:53
 */
@Data
@TableName("bus_grade")
public class GradeEntity extends BaseEntity {
	private static final long serialVersionUID = 1L;

	/**
	 * 企业等级id主键
	 */
	@TableId
	private Long id;
	/**
	 * 等级划分1 2 3 4 5
	 */
	private Integer level;
	/**
	 * 积分
	 */
	private Integer integral;
	/**
	 * 用户id
	 */
	private Long memberId;
	/**
	 * 创建时间
	 */
	private Date createTime;

	public GradeEntity(){}
	public GradeEntity(Integer integral, Long memberId) {
		this.integral = integral;
		this.memberId = memberId;
	}
}
